public class Tile
{
	private int floor, type, mob;
	public int scent;
	private boolean blocking;

	Tile() // Default constructor
	{
		floor = 0;
		type = 0;
		mob = 0;
		blocking = true;
		scent = 0;

	}

	Tile(int i, int t, boolean b) // Constructor for map building
	{
		floor = i;
		type = t;
		mob = 0;
		blocking = b;
		scent = 0;
	}

	public boolean isOccupied()
	{
		if (mob > 0)
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	/*public void setFloor(int i, int t, boolean b)
	{
		floor = i;
		type = t;
		blocking = b;
	}*/
	
	public void openDoor()
	{
		floor = floor + 1;
		type = 1;
		blocking = false;
	}
	
	public void closeDoor()
	{
		floor = floor - 1;
		type = 3;
		blocking = true;
	}
	

	public void setMob(int i)
	{
		mob = i;
	}

	public int getFloor()
	{
		return floor;
	}
	
	public int getType()
	{
		return type;
	}

	public int getTile()
	{
		if (mob > 0)
		{
			return mob;
		}
		/*else if (item > 0)
		{
			return item;
		}*/
		else
		{
			return floor;
		}
	}

	public boolean isBlocked()
	{
		/*
		 
		if (mob > 0)
		{
			return true;
		}
		else
		{
			return blocking;
		}
		
		*/
		return blocking;
	}
	
	public void addScent()
	{
		//scent = 100;
		
		scent = scent + 48;
		if (scent > 100)
			{
			scent = 100;
			}
	}
}
